<template>
  <div>
    <ul>
      <li :key="i" v-for="(item, i) in list">
        <test />
      </li>
    </ul>
    <button @click="list.shift()">-1</button>
  </div>
</template>

<script>
import Test from '../components/test.vue';
import { debounce } from 'lodash';

const debouncedReq = debounce(fn, 1000);

function debounce () {
  let timer = null;

  return function () {

  }
}

export default {
  components: {
    Test,
  },
  data () {
    return {
      list: [1, 2, 3],
    };
  },
  methods: {
    getRandom () {
      return Math.random();
    }
  },
}

</script>
